function deobj(obj) {
	let res = []
	const fn = (source,iid)=>{
	 source.forEach(el=>{
		res.push({
			id: el.id, 
			pId: iid, 
			value: el.id, 
			title: el.tagName
		})
		el.children && el.children.length>0 ? fn(el.children,el.id) : ""  // 子级递归
	 })
	}
	fn(obj);
	return res
}


export {
	deobj
}
